package com.asia5b.a5mall.middleware.model.order

import com.asia5b.a5mall.middleware.model.shop.AbsGoodsModel
import java.io.Serializable

/**
 * Created by zhangyuncai on 2020/1/13.
 */
class AftersaleModel : Serializable, OrderDetailModel() {

    //售后编号
//    var sn = ""

    //售后状态
    var refund_status_text = ""

    override var order_status_text_text: String
        get() {
            return refund_status_text
        }
        set(value) {
            refund_status_text = value
        }

    //售后进度
    var refuse_type_text = ""


    //refund_status=APPLY,申请退货状态
    var refund_status = ""


    //售后退款
    var refund_price = 0.0
    override var order_price: Double
        get() {
            return refund_price
        }
        set(value) {
            refund_price = value
        }
    var refund_price_list: HashMap<String, Double>? = null
    override var order_price_list: HashMap<String, Double>?
        get() {
            return refund_price_list
        }
        set(value) {
            refund_price_list = value
        }
    var refund_point = 0

    var id = 0
    override var order_id: Int
        get() {
            return id
        }
        set(value) {
            id = value
        }

    var refund_goods_dos: ArrayList<AbsGoodsModel>? = null
    override var order_sku_list: ArrayList<AbsGoodsModel>?
        get() {
            return refund_goods_dos
        }
        set(value) {
            refund_goods_dos = value
        }



}

/*
{
"id": 236,
"sn": "200326160621",
"member_id": 192,
"member_name": "test8",
"seller_id": 83,
"seller_name": "TestFour",
"order_sn": "20200326000043",
"refund_status": "COMPLETED",
"create_time": 1585209981,
"refund_price": 1,
"refund_point": null,
"refund_way": "ORIGINAL",
"account_type": null,
"return_account": null,
"customer_remark": "退货",
"seller_remark": "1111",
"warehouse_remark": null,
"finance_remark": null,
"refund_reason": "发票问题",
"refuse_reason": null,
"bank_name": null,
"bank_account_number": null,
"bank_account_name": null,
"bank_deposit_name": null,
"trade_sn": "20200326000043",
"refund_type": "AFTER_SALE",
"payment_type": "ONLINE",
"refuse_type": "RETURN_MONEY",
"pay_order_no": "2020032610001209126326",
"refund_fail_reason": "",
"refund_time": null,
"refund_gift": "[]",
"country_id": 12,
"refund_status_text": "完成",
"account_type_text": "原路退回",
"refuse_type_text": "退款",
"refund_type_text": "申请售后",
"after_sale_operate_allowable": {
    "allow_cancel": false,
    "allow_apply": false,
    "allow_stock_in": false,
    "allow_admin_refund": false,
    "allow_seller_approval": false,
    "allow_seller_refund": false
},
"refund_goods_dos": [
    {
        "id": 248,
        "refund_sn": "200326160621",
        "goods_id": 8549,
        "sku_id": 25664,
        "ship_num": 1,
        "price": 1,
        "price_list": null,
        "return_num": 1,
        "storage_num": null,
        "goods_sn": "2",
        "goods_name": "苹果",
        "goods_image": "http:\/\/47.88.173.86:82\/testShopImg\/20200321\/
        "spec_json": "[{\"specType\":0,\"specImage\":\"\",\"specValueId\"
        "total_price": null,
        "total_price_list": null
    }
]
},
 */